
pub const IPC: u8 = 0;
pub const WEIGHT: u8 = 1;
pub const CARGO1: u8 = 2;
pub const CARGO2: u8 = 3;
pub const HEAT: u8 = 4;
pub const DOOR: u8 = 5;
pub const DROP: u8 = 6;

pub const MY: u8 = IPC;



pub fn name_with_address(address: u8) -> &'static str {
    match address {
        IPC => "工控机",
        WEIGHT => "称重控制板",
        CARGO1 => "货架控制板1",
        CARGO2 => "货架控制板2",
        HEAT => "加热控制板",
        DROP => "切膜控制板",
        DOOR => "门控制板",
        _ => "未知控制板",
    }
}






